package cn.cs.service;

import cn.cs.common.Page;
import cn.cs.pojo.AccountDetail;
import cn.cs.pojo.UserBalance;

import java.util.List;
import java.util.Map;

public interface UserBalanceService {
    //根据用户id 查询账户余额
    public UserBalance getUserBalanceById(String userId)throws Exception;
    //根据用户id 查询账户明细
    public List<AccountDetail> getAccountDetail(String userId)throws Exception;
    //待开发票的资金明细
    public List<AccountDetail> getAccountDetailInvoice(String userId)throws Exception;
    //充值业务,在AccountDetail中添加一条记录
    public Integer addAccountDetail(AccountDetail accountDetail)throws Exception;
    //账户充值业务
    public Integer recharge(AccountDetail accountDetail) throws Exception;

    public List<Map<String,Object>>	getUserBalanceListByMap(Map<String, Object> param)throws Exception;

    public Integer getUserBalanceCountByMap(Map<String, Object> param)throws Exception;

    public Integer addUserBalance(UserBalance userBalance)throws Exception;

    public Integer deleteUserBalanceById(Long id)throws Exception;

    public Page<UserBalance> queryUserBalancePageByMap(Map<String, Object> param, Integer pageNo, Integer pageSize)throws Exception;
}
